import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue'
import DreamDesign from '../views/DreamDesign.vue'
import TaskBreakdown from '../views/TaskBreakdown.vue'
import PlanMaking from '../views/PlanMaking.vue'
import PlanExecution from '../views/PlanExecution.vue'

const routes = [
  { path: '/', redirect: '/login' },
  { path: '/login', component: Login },
  { path: '/dream', component: DreamDesign },
  { path: '/tasks', component: TaskBreakdown },
  { path: '/plan', component: PlanMaking },
  { path: '/execute', component: PlanExecution }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router